package com.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.entity.AcceptanceItems;
import com.project.dto.UpdateAcceptanceItemDTO;
import com.project.mapper.AcceptanceItemMapper;
import com.project.vo.AcceptanceItemDetailVO;
import com.project.vo.AcceptanceStatisticsVO;

import com.project.service.AcceptanceItemService;
import org.springframework.stereotype.Service;

@Service
public class AcceptanceItemServiceImpl extends ServiceImpl<AcceptanceItemMapper, AcceptanceItems> implements AcceptanceItemService {


    @Override
    public AcceptanceItemDetailVO getByIds(Long id) {


        return baseMapper.getByIds(id);
    }

    @Override
    public void updated(Long id, UpdateAcceptanceItemDTO updateAcceptanceItemDTO) {

        baseMapper.updated(id, updateAcceptanceItemDTO);
    }

    @Override
    public AcceptanceStatisticsVO getStatistics(Long acceptanceId) {

        return baseMapper.getStatistics(acceptanceId);
    }
}